{include file=top.html} 
<script>
$(function() {
	if($('#slides').children('a').length>1){
		$('#slides').slidesjs({
			width: 320,
			height: 120,
			navigation: false,
			play: {
				auto: true
			}
		});
	}
});
</script>
<div id="page-store" class="page-store page J_page"> 
	<!--common bar start-->
	<div class="bar-wrap">
		<div class="top-bar"><a href="javascript:pageBack();" class="pageback"><span></span></a>
			<div class="search-box">
				<form id="search-form" method="get">
					<input type="hidden" name="app" value="store" />
                    <input type="hidden" name="act" value="search" />
                    <input type="hidden" name="id" value="{$store.store_id}" />

					<input name="keyword"  type="text" class="kw" placeholder="请输入你要搜索的商品名称"/>
					<input type="submit" class="submit" value="">
				</form>
			</div>
			<a class="page-store-more" onclick="PsmobanShowMenu();"><span></span></a> </div>
	</div>
	<!--common bar end-->
	<div class="store-info">
		<!--{if $ad1.ad_image_url}-->
        <div class="full-banner"> <a href="{$ad1.ad_link_url}"><img  src="{$ad1.ad_image_url}"/></a> </div>
        <!--{/if}--> 
		<div class="d-info clearfix">
			<h3 class="float-left"><a href="{url app=store&id=$store.store_id}"><img src="{$store.store_logo}" /></a></h3>
			<div class="name-and-credit float-left">
				<p class="mt10 name"><a href="{url app=store&id=$store.store_id}">{$store.store_name}</a></p>
				<p><!--{if $store.credit_value ge 0}--><img src="{$store.credit_image}" alt="" /><!--{/if}--></p>
			</div>
			<p class="collect-btn J_AjaxRequest" action="{url app=my_favorite&act=add&type=store&item_id=$store.store_id&ajax=1}"></p>
		</div>
	</div>
	<ul class="store-statistic clearfix mb5">
		<li>
			<dl>
				<dt><b>{$store.goods_count}</b></dt>
				<dd><span>商品</span></dd>
			</dl>
		</li>
		<li>
			<dl>
				<dt><b>{$store_static.new_count}</b></dt>
				<dd><span>上新</span></dd>
			</dl>
		</li>
		<li>
			<dl>
				<dt><b>{$store_static.order_count}</b></dt>
				<dd><span>成交</span></dd>
			</dl>
		</li>
		<li>
			<dl style="border:0px;">
				<dt><b>{$store.praise_rate}%</b></dt>
				<dd><span>好评率</span></dd>
			</dl>
		</li>
	</ul>
    <div class="store-index-slide">
			<div id="slides" class="scroller"> 
				<!--{foreach from=$slides item=slide name=fe_slide}--> 
				<!--{if $slide.ad_image_url && $slide.ad_link_url}-->
				<a href="{$slide.ad_link_url}" class="store-banner"><img src="{$slide.ad_image_url}" /></a> 
				<!--{/if}--> 
				<!--{/foreach}--> 
			</div>
		</div>
	<!--{if $recommended_good}-->
	<div class="rec-goods goods-model-si">
		<h3>{$lang.recommended_goods}</h3>
		<ul class="clearfix">
			<li class="clearfix"> 
				<!--{foreach from=$recommended_good item=rgoods name=fe_rgoods}-->
				<div class="item">
					<div {if $smarty.foreach.fe_rgoods.iteration % 2 eq 0}style="margin-left:5px;margin-right:0rem;"{/if} class="wrap">
						<div class="wrap2">
							<div class="pic"><a href="{url app=goods&id=$rgoods.goods_id}"><img src="{$rgoods.default_image}" /></a></div>
							<h3><a href="{url app=goods&id=$rgoods.goods_id}">{$rgoods.goods_name|escape}</a></h3>
							<p>￥{$rgoods.price}</p>
						</div>
					</div>
				</div>
				<!--{/foreach}--> 
			</li>
		</ul>
	</div>
	<!--{/if}--> 

	<!--{if $new_good}-->
	<div class="new-goods goods-model-si">
		<h3>{$lang.new_goods}</h3>
		<ul class="clearfix">
			<li class="clearfix"> 
				<!--{foreach from=$new_good item=ngoods name=fe_ngoods}-->
				<div class="item">
					<div {if $smarty.foreach.fe_ngoods.iteration % 2 eq 0}style="margin-left:5px;margin-right:0rem;"{/if} class="wrap">
						<div class="wrap2">
							<div class="pic"><a href="{url app=goods&id=$ngoods.goods_id}"><img src="{$ngoods.default_image}" /></a></div>
							<h3><a href="{url app=goods&id=$ngoods.goods_id}">{$ngoods.goods_name|escape}</a></h3>
							<p>￥{$ngoods.price}</p>
						</div>
					</div>
				</div>
				<!--{/foreach}--> 
			</li>
		</ul>
	</div>
	<!--{/if}--> 

	<div class="view-all"> <a href="{url app=store&act=search&id=$store.store_id}"><i></i><span>全部商品</span></a> </div>
</div>
<div class="masker J_masker" onclick="PsmobanShowMenu();"></div>
<div class="menus J_menus">
    <div class="attrs" >
        <!--{foreach from=$store.store_gcates item=gcategory}-->
        <div class="attr">
          <div class="attrk">{$gcategory.value|escape}</div>
          <div class="attrv">
            <ul class="clearfix">
              <!--{foreach from=$gcategory.children item=child_gcategory name=fe_gcategory}-->
              <li {if $smarty.foreach.fe_gcategory.iteration gt 4}class="hidden"{/if}><a href="{url app=store&id=$store.store_id&act=search&cate_id=$child_gcategory.id}">{$child_gcategory.value|escape}</a></li>
              <!--{/foreach}-->
            </ul>
            <!--{if $gcategory.count gt 4}-->
            <div class="options">
              <a class="more" href="javascript:void(0);"><span>查看更多</span><i></i></a>
            </div>
            <!--{/if}-->
          </div>
        </div>
        <!--{/foreach}-->
    </div>
</div>

{include file=footer.html} 